//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.a.a.a.a.a;

import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;

public final class a {
    public static byte[] a(String var0, String var1, byte[] var2) throws Exception {
        SecretKeySpec var5 = new SecretKeySpec(var1.getBytes(), "AES");
        Cipher var3 = Cipher.getInstance("AES/CBC/PKCS5Padding");
        IvParameterSpec var4 = new IvParameterSpec(var0.getBytes());
        var3.init(1, var5, var4);
        return var3.doFinal(var2);
    }

    public static byte[] b(String var0, String var1, byte[] var2) throws Exception {
        SecretKeySpec var5 = new SecretKeySpec(var1.getBytes(), "AES");
        Cipher var3 = Cipher.getInstance("AES/CBC/PKCS5Padding");
        IvParameterSpec var4 = new IvParameterSpec(var0.getBytes());
        var3.init(2, var5, var4);
        return var3.doFinal(var2);
    }
}
